modify the skeleton to make sure data are loaded before the page script