Full source code for JavaScript Tetris: Part 1

See the Pen Tetris Skeleton by Walter Guevara (@ThatSoftwareDude) on CodePen.