First of all, JavaScript is not Java. It has nothing to do with Java (The language and its associated technologies from Sun Microsystems). To be honest, I'm not even sure why it's called JavaScript.
I have a java applet for a game I am writing which is in need of a high score counter. I chose MySQL because it is what I have used to keep track of such things in various applications I have written ...