Missing semi-colon in validate.js