fix js lint errors