tweaks to the js