adding new javascript function OC.generateUrl(url, params)