Puzzle/platformer in JavaScript