how to compare two strings in javascript if condition