JavaScript quirk 1: implicit conversion of values