The JavaScript/jQuery for the main page