Cleaned-up workflow of data and mapping functions started on page load