Added support for browser JS