A little hack, it isn't perfect yet. Game @ http://gabrielecirulli.github.io/2048/