fixed js lint errors