browserified version works now