Update x-ref.js

abstracting node earlier, before annotations and bridgedb