Integration of game made in unity to website for retrieving the information from game to website

I have made a runner game in Unity and build a WebGL build of my game, In my game player earns some coins and the website is made by my friend now i wanted to run the game on his website which i have done but now i want to store the number of coin earned on his database through his website. So tell me how I can do this?

to communicate with external js i tried .jslib but that js file must be written in unity and in my case it is already written by someone else only i can edit some lines