use jquery-barcode plugin to generate barcode
modify code
add application.js file