This is to prevent any jQuery code from running before the document is finished loading (is ready). It is good practice to ...
www.w3schools.com