further javascript lint improvements