Ping my channel page to see if it's currently live streaming using only JavaScript?

Can I hard code the authentication token in the website so that anyone who loads it will be identified as me?