Riddler.js is a nice wrapper around the SharePoint JavaScript API (ECMA)