Documents java and javascript