Fixed formatting issues to be compatible with JSHint