javasctipt edits