javascript to tie todo, commenting, and resume endpoints