Read the extended description… Sorry.

Brought in enchant.js file so people can run the game without an
internet connection.
Took Up/Down control out of all places and put it in one place,
game.gameStateUp.
Moved Player to it's own file.
Super rudimentary "lose" condition
Rotate tiles move up or down the screen depending on game state, I was wrong about lose condition
Game flips… still working out some things though.