Javscript based code guessing game