Made the STATUSES variable global, so it can be used in validation.js
Removed a console.dir call