People would love to aid you here - but this is a Java forum.
You might find better luck using a Java Script forum. Google it and I am sure you will find one.
Like Norm said above, the two are totally difference languages, Java is a general multi-purpose
object orientated language for web and desktop development. Java Script is a scripting language
used to write, well scripts for the web and webpages. Both languages may have similar names,
but are pretty much world's apart in syntax.
Wishes Ada xx