Wrapper of the 'magic' library to use it with a better use case than with .addClass(x), and other improvements