Creating jQuery functions for our mst often used bit of jQuery logic.