Deferred prepare + api.html5 became a function of input element