A few tweaks to the JS validation tutorial