Remove trailing whitespace.
2-space indentation for JavaScript.
Put focus on username input.