adding conditional to minasdev-beer events rendering
changing var declaration