improve index, and remove forgotten script loading issue