Added self executing function which is a substitute for DOM Ready when called at closing body tag