JavaScript/Game_Tetris: Refactor, rename transform to frame