Replace `bind` with a helper that doesn't assume ES5 support.