Use script tag trick to avoid having to hide the body