format slugify script code