removing unused javascript