Navigation: Hash processing demo updates page halfway through transition

Fixes gh-7775
Is the a need to use $.type here instead of typeof? the only way this would be needed is if we are worried about `new String( "stuff" )` which i'm pretty sure we are not here.