added yui_safely, an automatic document reloader is YUI is undefined