Divide draw functions from main.js. Create new file drawFunc.js. Add
editMesh Mode.