use typeof instead of trying to access the variable directly
add UI for the hash algorithm