fix pretest.js to load correct main.js file