reverting the js changes. Online seemed to work fine, the problem was that the stocks were purchased after hours and no profits had been accumulated