Added a JSHint and fixed some formatting issues.