Update example.js

Fixing a bug with the hasHashParameter function.