changing js pathnames, to get slide effect on index for button