public function renderTableJs(\Twig_Environment $env, $args = array()) {
        $array = array();
        $config = $this->fillModel($array);
        $array['updateUrl'] =  $this->fetchUrl($args, 'update', $config->getUpdateRoute());
        $array['deleteUrl'] = $this->fetchUrl($args, 'delete', $config->getDeleteRoute());
        $array['addUrl'] = $this->fetchUrl($args, 'add', $config->getAddRoute());
        $array['dtDefaultOpts'] = $this->container->getParameter('twentysteps_auto_tables.default_datatables_options');
        $array['dtOpts'] = $config->getDataTablesOptions();
        $array['dtTagOpts'] = $this->getParameter($args, 'dtOptions', array());
        $array['tableId'] = $config->getId();
        $array['transScope'] = $config->getTransScope();
        $array['reloadAfterAdd'] = $this->getParameter($args, 'reloadAfterAdd', true);
        $array['reloadAfterUpdate'] = $this->getParameter($args, 'reloadAfterUpdate', false);
        $array['includeJavascript'] = $this->checkIncludeJavascript();
        $array['includeBootstrap3'] = $this->getParameter($args, 'includeBootstrap3', false);
        $array['includeJquery'] = $this->getParameter($args, 'includeJquery', FALSE);
        $array['includeJqueryUi'] = $this->getParameter($args, 'includeJqueryUi', $config->getFrontendFramework() == FrontendFramework::JQUERY_UI);
        $array['includeJqueryEditable'] = $this->getParameter($args, 'includeJqueryEditable', TRUE);
        $array['includeJqueryEditableDatePicker'] = $this->getParameter($args, 'includeJqueryEditableDatePicker', $config->getFrontendFramework() == FrontendFramework::JQUERY_UI);
        $array['includeJqueryEditableBootstrapDatePicker'] = $this->getParameter($args, 'includeJqueryEditableBootstrapDatePicker', $config->getFrontendFramework() == FrontendFramework::BOOTSTRAP3);
        $array['includeJqueryDataTables'] = $this->getParameter($args, 'includeJqueryDataTables', TRUE);
        $array['includeJqueryValidate'] = $this->getParameter($args, 'includeJqueryValidate', TRUE);
        $array['useJqueryUi'] = $config->getFrontendFramework() == FrontendFramework::JQUERY_UI;
        $array['useBootstrap'] = $config->getFrontendFramework() == FrontendFramework::BOOTSTRAP3;
        return $this->render($env, 'twentystepsAutoTablesBundle:AutoTablesExtension:autoTableJs.html.twig', $array);
    }