Using YUI.use instead of setTimeout