Adding ready() initialization since script is now in head.