turn based javascript and html5 game