remove trailing comma on single element arr
Merge pull request #4 from kmulvey/bug/js-extra-commas

remove trailing commas on single element arr