Tidy up jQuery validator

Attempting to make the jQuery validator script easier to understand and implement for a front-end web dev.