Moving jQuery functions into named function that can be called on `ready()`.