js/phone-number refactor