Stop using UMD pattern since browserify builds UMD module.
Use node.extend instead of private port of extend function.