JavaScript API 1.x