got game working in js, no ajax yet