did minor changes to comparison operators in JS code