Smarter coffee script for the menu decorator.