Move script to head so it does not appear in the registry demo chunk