Where To Go From Here?
Before we set you loose, we have a few suggestions for how to avoid some common pitfalls when writing JavaScript games. First off you'll want to use the Chrome debugging tools. Secondly: Be sure not to try to delete Views after you create them since it is easy to make mistakes. Finally, consider using the blockEvents property to improve performance.
Debugging Tools
With the Chrome browser you already have a great set of JavaScript debugging tools when you're using the web simulator. Check out the Google Developers page for Chrome Developer Tools to get more information on how to make the most of the toolset.
You are able to set breakpoints, step, and inspect any of your JS variables. Chrome also has the best heap and CPU profiling tools available in our opinion and makes finding performance hotspots easy.