improve support to read options from script tag data attr