Attach the link listener ondeviceready

I'm not even sure if navigator.app is even there any more