Conditionaly execute inner scenarios using JavaScript