Deleted redundant lines in js.