Fixed potential _YUI is undefined error