Fixed JSHint errors, first pass (brackets).