Refactored to allow immediate spreadsheet fetch

No need to wait for the DOM to be loaded before fetching the spreadsheet
data.