add defer back to scripts