Fix global variable leakage.
Fix Function#name on browsers that don't support it.

Closes #236.