fixed JSHint errors