trying to implement knockout, using templated foreach loops