removing unused javascript references