add commonJS export in browser environment export
Merge pull request #462 from jbielick/master

add commonJS export in browser environment export