Revert "rewrote these two functions with better self-caching"
Revert "rewrote these two functions with better self-caching"

This reverts commit 40248f1178ee87072450c5881bd3c4cf31db33c4.

rlugojr/melonJS,gopalindians/melonJS,Smoss/Enoru-eco,srbala/melonJS,Smoss/Enoru-eco,MarkoIvanetic/melonJS,melonjs/melonJS,TukekeSoft/melonJS,rlugojr/melonJS,gopalindians/melonJS,MarkoIvanetic/melonJS,TukekeSoft/melonJS,gopalindians/melonJS,srbala/melonJS,rlugojr/melonJS,TukekeSoft/melonJS,melonjs/melonJS,srbala/melonJS