Uploading angularjs functions to update models.