add java and js documents