Return a promise from applyTo if jQuery is loaded