Browserify fix

This was a tedious little headache to have to locate...

Fixes #214 

Also resolved #597