tweaks javascript