Convert and fix persian/english wrong text
First include switchLangKeys.js file in your webpage, then use like below samples:
var testStr1 = "اثممخ صخقمی";
var testStr2 = "jsj lda,n";
console.log( testStr1.switchFaToEn() ); // Output: Hello World
console.log( testStr2.switchEnToFa() ); // Output: تست میشود