Update utils.js

Put index inline js in this
Update index.html

Move inline js to utils.js