How to migrate existing UIAutomation test code with Appium

Hi All,

I have automated one iOS application through Instruments(Apple UIAutomation tool), as now i am switching to Appium is there any way from which i can migrate all those test classes (which was written in javascripts) to Appium,i.e can i reuse all the test code.