Clean code

- Fix trailing spaces
- Code now pass JSHint