name change: state -> gameState
make isValid a local variable
add jquery skeleton