Use JS to simulate portfolio performance