fix bug in js file of home/index