Fetching global state via javascript sdk

i am facing problem how we access global state using javascript sdk and i want to also call shufl.app smart contract methods

Welcome to Algorand!

To read global state with JS, you need to use the indexer.
See Indexer - Algorand Developer Portal