compare two strings lexicographically javascript