Fixed IE8 Javascript errors 

Commas at the end of certain lines.