insert goals into data and fetch with ajax