Remove unneeded js calls