works down to IE6

I pulled the `isFunction` implementation from `object-keys` into it's own module, used it here, and now this works all the way down to IE6.