Moved api calls to node to ignor cors issues and got message hsitory working