javascript lint improvements