Calling a number on Windows Phone 7

Calling a number on Windows Phone 7

Hello , I am working on a windows phone 7 app using jquery mobile and phonegap.
I realised window.location.href/replace(....) do not work in WP7 and i know I can atleast replace window.location.href with jquery mobiles page change implementation BUT what if I want to have a javascript to call someone.

My current code goes something like this:

window.location.href="tel:"+telephoneNumber


I know another way is to dynamically create a link and triggering a click on it , but don't want to touch the page content and I already have IOS , Android and blackberry and so it will be a lot of work when I want to make changes.

Anyone knows a fix? Or is there no other way?

Thank you!