Have to add the js to the 'create' action, in case there is an issue with the form in general. Now have to work out the logic with handling overlaps with the accession identifier.