change 'src' and 'href' from absolute path to relative path to support safari and other sandboxing browser.