Modify the function of prom in index.html