Simple javascript tetris application