Modal script moved to head