functionDecorator.js for review