Javascript file for sha1 functions