fixing js lint error