java and js code add