Added body.onload

better script tag embed support