add new api endpoint and js refresher