enclosed each angular file's code in anonymous function to hide var names

angular is now returning data from node server
have getaAll, getById, getByNodeId working correctly from the angular controller