how to add image in svg using javascript

Set a title on the image. so it adds