Replaced inline hashing functions with those from jshashes npm modules