using replaceText method from jquery.ime.js for seamless usage of physical keyboard and osk