All the handlebar tapes I've ever bought came with tape so you can tape the ends near the stem as Hillrider explained. There is also a product that is made of plastic and works like a collar that you can use to fasten (clamp) the ends down;
http://www.stellaazzurra.com/Accessories/Alpha-Zeta.php