Fixed thinko in JS