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)