Remove the last comma of settings

An extra comma in the end of a object will cause a error in the ie6.