Move to knockout for templating