small cleanups to java scripts