added javascript slug maker function