cleaned up deeplinkInit and changed document.ready to window.load