[fix bug 1054956] Refactor Firefox OS Get phone logic to remove JS dependency