some clean-up/optimization (ticket #46)
some clean-up/optimization (ticket #46)

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