more js tweaks