updated the code to ensure it works even on the browser
bumping version to  0.2.0 and generateBrowserVersion.js now helps build the browser files