polyfill bind for phantomjs to not break when running unit tests