Turn URL2page_src into a function