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 pull request #56 from facundoolano/master

Update the exports line to work in node.js, browser and browserify