Removing unused javascript