Modifying the options object in place leads to undesired behavior when using the JS API.
Modifying the options object in place leads to undesired behavior when using the JS API.