[RCD] Using javascript from message hooks