You don't need jailbreak. In the native youtube app start a video and press the home button. Then double tap the home button, swipe the multitasking bar to the right and press play. It's easy. Then you can do whatever you like with the music in the background.