timeline iframe in our own domain, code refactor