Use binding on the main page so that we can change the data in javascript