edit main.js according to new python script