Redo the part where options are being set from data- attributes