Redo stuff to output json and move the html templating into react js