bug in base.js slugify function