Removing useless usage of elem.dataset