Update templates/index.html

Passed arrays from Flask to JavaScript; might do this with File I/O later if speed becomes an issue.