how to compare 2 strings in javascript