Javascript edits