Fix for odd browserify behaviour