minor edits js