Added validate.js (unfinished)