.bind workaround for phantomjs 2