removing unused stuff from js