#963 - move scripts block inside the body tag