Browserify transform to swap CommonJS require call to custom function call