added reading of callbacks in scope
added callback to angularjs example