Added some JS for progressive refresh output, have to debug it