Add comments to jQuery drawer

restructure and add comments