Adding JavaScript SHA1 algorithm.