JavaScript API Examples