Insert script elements before the end of body.