added function to parse settings from data attributes