JavaScript has little to do with Java, despite its name. You can't use Java classes like SimpleDateFormat in JS. If the format you're getting from "new Date().toString()" is not sufficient, you'll need to do string manipulation to transform it.
Alternatively, Java code in the JSP page can embed the formatted date string inside the script:
[ November 02, 2007: Message edited by: Ulf Dittmer ]