Make JSHint happy and remove trailing whitespace