In js, waffle.switch is now waffle.switch_is_active.