minor js tweaks