NJT: javascript cleanup, comments