(In python you can and *absolutely should* end the last line of a dict literal with a comma, but unfortunately in JS that's not strictly legal in all specs and implementations. While in most instances it's tolerated by the browser, it has been known to cause occasional problems, so the convention is just to be strict about not having it. http://stackoverflow.com/questions/7246618/trailing-commas-in-javascript)