Final javascript and html for demo