Fix for IE and Firefox not correctly initializing the livepreview on page load