clean up stale styles (remove media queries, etc.)
use .dataset instead of .getAttribute('data-...')