Server side onload functionality in multiple docs