tweak javascript