Some javascript fixes

Trailing commas
Surrounded a class property with double quotes.
Fixed unreachable code
Removing unused locales
Update control-main.js and main.js
Merge pull request #1068 from CarlosManias/js-fixes

Js fixes