Help required formatting a Jquery form?

Help required formatting a Jquery form?

I am using some JavaScript code which I have copied which created a book now button for booking a hotel room. When I add to my Joomla website template the form is not displaying as it should. It should display in just one line but it is currently displaying with line returns and over several lines. I have found some of the base code in the JS file but I cant work out how to get it to display correctly in just a single line.

What it is displaying like can be seen at the following  WEBLINK you need to click Booking at the top to see the button.

The code I can find in the JS file is various but includes the following. ANy help on how to get this to display as it should would be much appreciated!!!

freetobook_widget.prototype.getThinHTML=function(id){
 var html=''; 
 
 html+='<div id="ftb_widget_' + id + '" class="ftb_w_search">';
 html+='<form method="post" action=" http://www.freetobook.com/affiliates/reservation.php?w_id=' +
     this.settings.widgetId +'&w_tkn=' + this.settings.widgetToken + '"';
 
 if (this.settings.analyticsEnabled==true) html+=' onsubmit="_gaq.push([\'_linkByPost\', this]);" ';
     
 html+='';    
 html+='>';
 if (this.settings.blockFlag==false)
 { 
  html+='<div class="ftb_w_arr"><span class="ftb_w_cin_t">Check In:<\/span><br>'
  html+='<\/div>';
  html+='<div class="ftb_w_dep"><span class="ftb_w_cout_t">Check Out:<\/span><br>'
  html+='<\/div>';
  
  html+='<div class="ftb_thin_wrap">';
  html+='<input id="ftb_w_check_' + id + '" class="ftb_w_check" type="submit" value="Check Availability">';
   
  html+='<input id="ftb_w_cin_' + id + '" type="text" readonly="readonly" size="8">';
  html+='<input name="checkIn" id="ftb_w_cin_h_' + id + '" type="hidden" value="' + this.settings.checkIn + '">'; 
  html+='<input name="checkOut" id="ftb_w_cout_h_' + id + '" type="hidden" value="' + this.settings.checkOut + '">'; 
  html+='<input name="stayLength" id="ftb_w_dur_h_' + id + '" type="hidden" value="' + this.settings.duration + '">'; 
  
  html+='<input id="ftb_w_cout_' + id + '" type="text" readonly="readonly" size="8">' ;
 }
 else
 { 
  html+='<div class="ftb_thin_wrap ftb_thin_block">';
  html+='<input id="ftb_w_check_' + id + '" class="ftb_w_check" type="submit" value="Check Availability">';  
   
  html+='<input id="ftb_w_cin_' + id + '" type="text" readonly="readonly" size="8">';
  html+='<input name="checkIn" id="ftb_w_cin_h_' + id + '" type="hidden" value="' + this.settings.checkIn + '">';  
  html+='<input name="stayLength" id="ftb_w_dur_h_' + id + '" type="hidden" value="0">'; 
  html+='<input name="search_stage" type="hidden" value="dates">'; 
 
 }
 html+='<\/div>';
 html+='</form>';
 html+='<\/div>'
 
 return html;
}