Fixes js error on new game submission