Python Join Some Array Javascript Methods