Extended loader.js functionality to support text/plain requests.