Use tools.functionName(fn) instead of fn.name

Getting the name of a function does not work properly in IE.
Warn for old IE versions
Merge pull request #181 from stoewer/master

Fix internet explorer bug

LGTM