Moved scripts under html in index.html