Update index.html

Add additional methods call from the JS that allows the html to call ajax to save the image or raw data