Added ajax updating of net profit