removes unneeded js