added shim for missing JS Function.bind()