Add missing requires
Use the passed id for Function.displayName

Ref:
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/displayName
- http://www.alertdebugging.com/2009/04/29/building-a-better-javascript-profiler-with-webkit/
- https://code.google.com/p/chromium/issues/detail?id=17356