//paste this code under the head tag or in a separate js file. // Wait for window load