Not all environments, like phantomjs, have 'bind' defined, so changed some assignments to use the raw unbound functions instead