removed unused edit_mode.js
converted prototype classes to regular javascript objects