O'Reilly logo
  • Scott Noyes thinks this is interesting:

this.

From

Cover of HTML5 Games: Novice to Ninja

Note

Until the next section on screens, "this" doesn't make any sense here. Remove the "this." and put the rest of the code in the main game loop in main.js.