some more edits to js