remove trailing commas and etc to make it Closure-palatable