Fixed Javascript errors and what not
Fix Javascript errors

Conflicts:
	web/chess.html
	web/js/game.js