Made it generate word on page load.