2048 game coded in Javascript