Added some JS console logs for debugging started sending token to JS for API requests