parse XLT scripts into JS scripts based on webdriverio APIs