Imports the right functions.

Uses the `map` collection function, since we don't convert
the querySelector to an actual Array anymore.