refactor: moved dom manipulation logic into mixin file

4 jobs for feature/#297-highlight-motifs in 5 minutes and 3 seconds (queued for 2 seconds)