fixed bugs in equation renumbering system. Added remove equation button. Working on editing equations, revamping the editor.
formatted main.js
Equation editing capability added. Folded equations have to be refolded, when edited.