Update js to use status/api