Update index.html

Moved all methmods to passauto.js