adapted js includes for chages in cgiError templates
allow to not supply param parameterr, added destroy o clode