Updated it to follow the original better. You try the updated version here:
http://johan-nordberg.com/2048/
(or if you're in the future the js1k crew might have updated my submission already, in that case, forget you read this, it was perfect from the start, whoa i need a break, my brain is trying to find ways to write this comment using fewer characters, commas are nice, sleep)