Bug 920752 - Make origin more flexible to fix browser case
Use location.origin for contacts app origin