polyfill for bind function