updated some js tweaks