Recoded the javascript slugify to suit the multiple input boxes a bit better.