Created the edit.js script