title: issue regarding trailing commas in JavaScript
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/11823162/internet-explorer-closure-compiler-and-trailing-commas">Internet Explorer, Closure Compiler and Trailing Commas</a>  </p>
  </blockquote>
  
  
  
  <p>I've tried compressing my javascript code using the <a href="http://closure-compiler.appspot.com/home" rel="nofollow noreferrer">Closure Compiler</a> and the compilation of the code generated these two errors:</p>
  
  <blockquote>
    <p>JSC_TRAILING_COMMA: Parse error. IE8 (and below) will parse trailing
    commas in array and object literals incorrectly. If you are targeting
    newer versions of JS, set the appropriate language_in option. at line
    379 character 0 fontFamily     :
    jqTextareaDiv.css("font-family").replace(/["']{1}/gi,""),</p>
    
    <p>JSC_TRAILING_COMMA: Parse error. IE8 (and below) will parse trailing
    commas in array and object literals incorrectly. If you are targeting
    newer versions of JS, set the appropriate language_in option. at line
    932 character 0 fontFamily : jqDiv.css("font-family"),</p>
  </blockquote>
  
  <p>These two errros seem to refer to this code:</p>
  
  <pre><code>var jqTextareaDiv = obj.target.parent().parent(),
                              style = {       // the current, relevant style rules for the DIV nesting the textarea
                                  fontFamily     : jqTextareaDiv.css("font-family").replace(/["']{1}/gi,""),
                                  fontSize       : jqTextareaDiv.css("font-size"),
                                  fontStyle      : jqTextareaDiv.css("font-style"),
                                  fontWeight     : jqTextareaDiv.css("font-weight"),
                                  textDecoration : jqTextareaDiv.css("text-decoration"),
                                  textAlign      : jqTextareaDiv.css("text-align"),
                                  color          : jqTextareaDiv.css("color"),
                              },
                              jqToolbox = $('#text-edit-toolbox'),
                              jqIndicators = {
                                  fontFamily                : $('#font-family-indicator'),
                                  fontSize                  : $('#font-size-indicator'),
                                  fontStyle                 : $('#font-format-indicators .font-style'),
                                  fontWeight                : $('#font-format-indicators .font-weight'),
                                  textDecorationUnderline   : $('#font-format-indicators .underline'),
                                  textDecorationLineThrough : $('#font-format-indicators .line-through'),
                                  textAlignLeft             : $('#text-alignment-indicators .align-left'),
                                  textAlignCenter           : $('#text-alignment-indicators .align-center'),
                                  textAlignRight            : $('#text-alignment-indicators .align-right'),
                                  textAlignJustify          : $('#text-alignment-indicators .align-justify')
                              };
  </code></pre>
  
  <p>Exactly which is the trailing comma in this case and how can I remove it without breaking the code?</p>