Javascript simple edits