chore: whitespace changes

Remove trailing whitespaces
Match indentation on all files to the JavaScript setting
Small change in Gruntfile to remove unneeded curly braces