Fix bug in phone number which would break when running in a non-browser environment