Adding JS script to collect information from edited narratives. (WIP)