refactored waffle sidebar into waffle.js