Javascript game test