resolving js lint errors