modified ajax calls to work with returned backtest