removed unneeded commas at end of lists

I have removed the unneeded commas at the end of lists to make it es3 compliant in jshint.