window.onload = function(){
    $(function() {
          $("#se_q").autocomplete({
                source: function(request, response) {
    				var url = window.location.pathname.split('/');
    				url.pop();
    				var prefix = '';
    				url.forEach(function(i){
    					prefix .= '../';
    				});
    				$.getJSON(prefix+"autocomplete", { term: request.term, table: $('#search_table').val() }, 
              		response);
  				},
                minLength: 3,
                select: function(event, ui) {
                	//do_search(ui.item.value);
        		}
            });
         });
    }
@@ -278,17 +278,17 @@
 %09prefix 
-.
++
 = '../';

use += to concatenate in js