cleaned up how scriptlets were invoked in writeSolution in clt.htm