add warning when window origin isn't what we expect it to be.
split js/index.js into separate modules in lib/browser/.
made origin-warning.js a script instead of a module.