minor js tweaks.