Add on hash change event handler.