Minor changes to the way modules load in order to support static loading that browserify requires.