Merge pull request #116 from pkkup/master

added yui_safely, an automatic document reloader is YUI is undefined