Deep linking in javascript