Changed GLOBAL to global to work with browserify