Browserfy

Makes a few changes to the main file to work in Browsers.