JSHint and JSCS fixes in the main dir's files.