A junction box would be needed if you need to extend the wires. It has to remain accessible. If you don't want to re-run longer cables, you'll need to add another cable.
Let's Get It Fixed!
Our virtual experts can diagnose your issue (for free!) and resolve simple problems.