update js index page