OK for now. You will need a proper REST API for the next homework. I suggest you use angular-resource.js.