(This is a comment for the file itself, not this particular line.) 
Shouldn't all the console.log("string") statements with debug info (pressing and releasing of mouse buttons for instance) be removed or commented out?