Javacsript game test