Phone number validation in JavaScript