src/amazon-autocomplete.js
function _buildScriptContainer(){
        let parent = document.getElementById('ac__script');
        if (parent == null){
            parent = document.createElement('div');
            parent.id = 'ac__script';
            parent.appendChild(document.createElement('script'));
            document.body.appendChild(parent);
        }
    }
function _buildScriptContainer(){
        let parent = document.getElementById('ac__script');
        if (parent == null){
            parent = document.createElement('div');
            parent.id = 'ac__script';
            parent.appendChild(document.createElement('script'));
            document.body.appendChild(parent);
        }
    }
function _buildScriptContainer ( ) { let parent = document . getElementById ( 'ac__script' ) ; if ( parent == null ) { parent = document . createElement ( 'div' ) ; parent . id = 'ac__script' ; parent . appendChild ( document . createElement ( 'script' ) ) ; document . body . appendChild ( parent ) ; } }
Create the script tag needed to fetch the suggestions and append it to the DOM
Create the script tag needed to fetch the suggestions and append it to the DOM