join calls js correctly