Fix bind shim for phantomjs