Is it possible to use google play games services with a javascript game?

Hello,

I have built a game completely in js, and prefer that language over c#. I want to add leaderboards among other google play game services to my game. Is it possible to do so by converting the c# google play games calling code to js?

I tried this code:

import GooglePlayGames;
    import UnityEngine.SocialPlatforms;
    ...
    // post score 12345 to leaderboard ID "Cfji293fjsie_QA")
    Social.ReportScore(12345, "Cfji293fjsie_QA", (success : boolean) => {
        // handle success or failure
    });

This code however throws a few errors and does not work. Can anyone help with this?

converted my code to c#… best work around.