javascript compare two strings alphabetically