small change to java scripts