WIP - moving js code into knockout for events/show