Flattened JavaScript API