And to answer your second comment: abstraction. If we move away from Analytics, or its API changes, we can change only what's inside the function once instead of all occurrences of this line. Plus separation of concerns: the ``search.js`` script should definitely not know about Analytics, imo.