WIP fix accession linker failing when initialising javascript for token editor