Ok I found the answer so I post it in case it can be useful for others:
var date = new Date(2011,5,24)
var month = date.getMonth()
var year = date.getFullYear();
var dateString = moment(year, "YYYY").fromNow(true) +
moment(month, "MM").fromNow(true)) + " ago"
console.log(dateString)