Bug 1100295 - Implement navigation logic. r=crdlc

I think that we don't need to check callback , only typeof callback === 'function', right? or is it faster?