Adding updated functionDecorator.js