Made HTML generate on document ready state