moved server templates into js and updated show/segment docs