add exporting js module for phantomjs