Proper handling of url parameters in javascript, js and js_lib template tags