fix require not available in phantomjs context