a bit more js... works in Firefox