Updated the angularjs home page controller, communications between angular and node api working