update Java and JavaScript