Comparing JavaScript Strings: an Example of Different Types