def draw_js(element_id)
      js = ''
      js << "\n  function #{chart_function_name(element_id)}() {"
      js << "\n    #{to_js}"
      js << "\n    var table = new google.visualization.Table("
      js << "document.getElementById('#{element_id}'));"
      js << add_listeners_js('table')
      js << "\n    table.draw(data_table, #{js_parameters(@options)}); "
      js << "\n  };"
      js
    end
def draw_js(element_id)
      js = ''
      js << "\n  function #{chart_function_name(element_id)}() {"
      js << "\n    #{to_js}"
      js << "\n    var table = new google.visualization.Table("
      js << "document.getElementById('#{element_id}'));"
      js << add_listeners_js('table')
      js << "\n    table.draw(data_table, #{js_parameters(@options)}); "
      js << "\n  };"
      js
    end
Generates JavaScript function for rendering the google chart table.

 @param element_id [String] The ID of the DIV element that the Google
   Chart DataTable should be rendered in
 @return [String] JS function to render the google chart table