use left / right arrow keys to rotate the board
press up arrow to use a magnet.
press down arrow to freeze the giftbox

This application is open source under the zlib license.
It provides a simple base for cocos2d-javascript games.
Feel free to fork it from github.com/Nehmulos/cocos2d-base-application