add todo.js which demo REST web service api