Slugifier for javascript