CB-8158 added hasModule check to browserify code