Implement zero hash in JavaScript.

Closes #67.