Create indexFunc.js

the JS file of index.html