Behaviour for portfolio in JS