javascript compare 2 strings alphabetically