reading DOM settings from script element