Ran through JSHint

- tabs to space
- removed trailing white-space
- run through JSHint