fit and return 'loess' curve