add Decorator Pattern - js