NodeJS -> controller beer refactor