rmdf: store and retrieve onclick and ontick scripts