Minor js tweaks