[Help] Javascript To jQuery Convert

[Help] Javascript To jQuery Convert

If anyone can help me change the javascript code below into jQuery code? I'm having trouble changing the code.

    1. function addListItem ( ) {
    2.         var listItem , container , dataList = document. getElementById ( 'dataList' ) ;
    3.  
    4.         // Create our list item
    5.         listItem = document. createElement ( 'div' ) ;
    6.         listItem. setAttribute ( 'data-bb-type' , 'item' ) ;
    7.         listItem. setAttribute ( 'data-bb-img' , 'images/icons/icon11.png' ) ;
    8.         listItem. setAttribute ( 'data-bb-title' , 'Title ' ) ;
    9.         listItem. innerHTML = 'My description' ;
    10.  
    11.         // Create a dummy container
    12.         container = document. createElement ( 'div' ) ;
    13.         container. appendChild (listItem ) ;
    14.  
    15.         // Apply the styling
    16.         bb. imageList. apply ( [container ] ) ;
    17.  
    18.         // Append the item
    19.         dataList. appendChild (container. firstChild ) ;
    20.  
    21.         // re-compute the scrolling area
    22.         if (bb. scroller ) {
    23.                 bb. scroller. refresh ( ) ;
    24.         }
    25. }
Try and Debug