JavaScript polyfill for the WHATWG spec of focusOptions, that enables a set of options to be passed to the focus method