bind for phantomjs