Attempted Jquery insertion of missing divs, inputs with issue

In the Avada functions.php (for testing as obviously I would need to include such code in a child theme)
function s2memberfix(){
if( is_admin()){
	/*if( 'admin.php?page=ws-plugin--s2member-gen-ops' != $hook){
		return;
	}*/
		[wp_enqueue_script](http://codex.wordpress.org/Function_Reference/wp_enqueue_script)('s2_fix',[get_template_directory_uri](http://codex.wordpress.org/Function_Reference/get_template_directory_uri)() . '/assets/admin/js/s2memberfix_Avada.js','jquery','',true);
}
}

[add_action](http://codex.wordpress.org/Function_Reference/add_action)('[admin_enqueue_scripts](http://codex.wordpress.org/Plugin_API/Action_Reference/admin_enqueue_scripts)', 's2memberfix');






Script File
(function($){
  $('<div id="ws-plugin--s2member-custom-reg-field-configuration-tools"><a href="#" onclick="ws_plugin__s2member_customRegFieldAdd(); return false;">Add New Field</a></div><table id="ws-plugin--s2member-custom-reg-field-configuration-table"><tbody><tr><th>Order</th><th>Field Type</th><th>Unique ID</th><th>Required</th><th>Levels</th><th>- Tools -</th></tr><tr><td colspan="6">No Custom Fields are configured.</td></tr></tbody></table>').appendTo('#ws-plugin--s2member-custom-reg-fields-configuration');
})( jQuery );