Add applyConfig to yui context, expose js errors