Shim module for phantomjs