Update index.php

Separating Javascript file