fix some small issues found by closure compiler (IE incompatibilities)

Closure treats the trailing comma in object as an error. Avoiding "final" keyword as var name is also only needed for older browsers, but keeps tools happy.