insert.js edits