modify main.js, using scriptFile replace old code