undefined global object for webworker fixed