add java and js file.