Fix JS for addition of multiple options at once