step 1, convert data file to javascript; step 2, patch XMLHttpRequest;