This is more of a thought than a suggestion:
consider adding `data-options` to the DOM and then instead of checking undefined, checking for a default value. This way, if someone later decides to stick `data-options` on the dom it doesn't break.