tweaks to js