Tetris implementation in ecmascript 5

How to play
  • Left-Right arrow : Move pieces
  • Up arrow: Rotate piece
  • Down arrow: move piece one row down
  • Enter: move the piece all the way down
Source code can be found in github
Same thing with minified source code is here