Removed index parameter from the html and javascript