Optimizing site by removing unnecessary javascript