So we have started by declaring a variable main as a function, and made sure that the document is ready before we apply any sort of jQuery or Javascript