uses angularjs  instead of jquery $.get