Updating index with javascript link