Removing extra scripts and trema