refactored beer-song.js