Fix javascript lint issues