JS Tweak

Fixed unnecessarily complex stringCompare function