Adding Winchan & Phonegap compatibility.