My game is taking up 100% cpu usage and crashing on some devices

I’m not an HTML5 developer, but I put together this game really quick to test out the capabilities of three.js and html5. Unfortunately, the game is taking up 100% CPU usage and there seems to be a memory leak or something that causes it to crash some browsers. Was hoping perhaps someone is able to look into it. I know this is a lot to ask, but unfortunately I don’t have the knowledge yet to fix this myself.

Bellow is a link to the game.

I can still see in your app the same problems i’ve earlier mentioned in this thread: Potential memory leak in my animation engine

Why haven’t you cleaned up your code?