Check if a string exists within another string in javascript