Change live-reload code to use location.reload()