Using Option sets in Javascript

Hi there,

How do I represent an option set in JavaScript, so that I can send the option set display name from my API to Bubble?