- moved all java from index.html to functions.js