jquery

Beware trailing comma in JavaScript prototypes

I spent more time than I care to admit tracking down this one, perhaps this post will save someone else the trouble...

When defining a number of functions in a prototype in JavaScript, do not include a trailing comma after the last function: