integrate JS to refresh page info