Regex to check for extra comma in js (because IE will choke)
Which produces the following stack trace
This is hard to follow, though not significantly harder to read than before. To fix that I would recommend using promises (off topic).
and Function expressions
So for an example, notice the Function below (log is just a supporting function)