Restructures hash.js to be a library instead of a class