Make validate.js loadable via AMD
Auto-running of tests
Some doc comments