added a check to see if running in browserify
0.0.2