viewer js index