use Binding#local_variable_get if available
Avoid using Function.prototype.bind for compatbility with older browsers

Closes #194.