add reg tags for npm and bower
Fix exporting in browser.