put todolist server js calls in api module.