Fixed js lint errors