Substitua todos os traços por barras usando jQuery em uma string
x = x.replace(/\-/g, '/')
Magnificent Mink
x = x.replace(/\-/g, '/')