Updated the way JavaScript code is generated. This makes FireFox happy.
Authored by: keess 2005-03-24
Parent: [r1416]
Child: [r1418]