Convert validate.js to jQuery