Generate markup in background page; add links