Js session tweaks