Index update

New index code including smooth scrolling.