Js fixes

Removed trailing commas
Surrounded property named class with double quotes
Fixed unreachable code
Removed unused locales