updated index.html
added fileToImagElement() to main.js and modified index.html