Recycle function from molgenis.js