jsScript =+ "document.form[0].submit();"; not working

code here:

var safari = application(“Safari”);
safari.includeStandardAdditions = ture;

var jsScript = "";

     jsScript += "document.getElementsByName('search_query')[0].value ='Aapple';";  

    jsScript =+ "document.form[0].submit();";

safari.doJavaScript(jsScript,{ in:safari.windows[0].currentTab});

==================================
step 1 on automator done: open the www.youtube.com (this step work)
just add a javascript to the automator above, but do not run the submit function.

do any one know how to fit it ?