preliminary js to populate citations table