Added support for browserify and AMD