Refactored TumblrClone App using angularjs