Add script for the 'Rvis_doctype' function