fixed JSHint identified errors