Make sure that the ``dumps`` function is imported in ``<package>/templates/viewer.js`` using: