fix JS lint errors