Shim for browsers that don't support Function.name