Move mapkey and move dom dependency to a variable
Move dom dependency into a dom module
Add tests to map key module