[javascript] How to check if string contains Latin characters only?