Emulate Function.prototype.bind if not supported by JS host.