.bind workaround for phantomjs