Redering problem of tender

I looked into requirejs documentation and other help related javascript and come up with this solution.
http://requirejs.org/docs/api.html#pageload
http://www.nczonline.net/blog/2009/06/23/loading-javascript-without-blocking/
Actually in the earlier version we used document.ready where as the builtin library of domReady is the better solution to know if the page is loaded or not. So this function will add the tender_widget.js when the page is completely ready.