Angular app which loads data from a remote server using json object