I'm going to be moving a lot of this code inside the charmbrowser view as it's going to be parsing the type to render based on the data passed to it as discussed.