headscriptToken in index and changing how anon users are determined