add css option and break htmlOptions into it's own function