A simple SHA-256 / SHA-224 hash function for JavaScript supports UTF-8 encoding.
emn178/js-sha256 has 966 GitHub stars.
It currently ranks #9327 daily, #10477 weekly, #14226 monthly by momentum on Trending Repos; its best-ever rank is #2879.