added return

function did not return anything, javascript crashed on .join(), return fixed that