Maybe we should use the url template for the session url... but as far as i can see we can not you this tag in this js file... maybe passing via parameter to this function (i am afraid this would require bind)
What do you think?