A JavaScript client for SmartImage