`registerPlugin` also js encodes `options` which is going to be a common and repetitive task among widgets.