Remove unused javascript references