updated liverefresh javascript