added text loading support for requirejs