Automating Adobe Illustrator using JavaScript scripts