changed http sample to use knockout