Changed the div creation to be on page load