Fixes embedded objects and scrolling function on both post and page load