Throw callback errors after frame has completed

In reference to the following mail from Boris Zbarsky:
http://lists.w3.org/Archives/Public/public-web-perf/2014Jun/0036.html
Whitespace cleanup to align index.js with code style
Rename variable to mimic similar code
2.0.2