fix bug 924674 - moving script block inside of body