API Object Model for JavaScript