change main.js_code and control time