fix jshints warnings