compatibility and browserify fixes
normalized formatting between browser and console