fix bug in callback function in index.html

fix bug in callback function in index.html