What type of barcode are you trying to create? is it 39? I would recommend creating an image of a barcode then passing the image to the webpage. If you do a search you should be able to locate a simple api to create the barcode 39 using lines in an image.