fix javascript lint errors