Fixed missing curly braces
Added sonarqube rule for javascript
Formatted java source code
Added missing curly braces
Removed useless newlines