updated script-calling order in index.html