Phrame.js is an MVC framework for Photoshop, Illustrator and InDesign scripting.