Fixes to javascript phone validation