fix determining of browserify/require
remove debugging console.dir