integrate scripts in index.html