final tweaks to js