Moved forwarding script to after page load