Can this not be inlined into popup.html?