main js edits