Update example.js

Fixing a bug with the hasHashParameter function.
Merge pull request #14 from aaronmader/patch-1

Update example.js