Fixing up equality checks, I'm a JS n00b!