Changed exports line

To allow the module to be browserified.
Update the exports line to work in node.js, browser and browserify

Also make the validate function available in window instead of window.json (inline with revalidator documentation)
Merge remote-tracking branch 'f/master'