tweak js events