ES3 compliant - remove trailing commas; quoting reserved words