[Manage] Run JS code only when page is loaded.