function wpb_hook_javascript() {
    ?>
        <script>
          // // LOAD JS
var script = document.createElement("script");

// LOAD JS
script.type = "text/javascript"
script.src = 'https://w.contester.net/widget/index.js';
document.body.appendChild(script);

// LOAD CSS
var element = document.createElement("link");
element.setAttribute("rel", "stylesheet");
element.setAttribute("type", "text/css");
element.setAttribute("href", "https://w.contester.net/widget/index.css");
document.getElementsByTagName("head")[0].appendChild(element);

// ADD FLOATING WIDGET
window.contesterFloatingWidget = {
sequenceId: '5545d4c6-957d-47ae-a4ef-ed530347fe98',
customRouting: false, // - optional
maximizedDefault: false, // - optional
} 
        </script>
    <?php
}
add_action('wp_head', 'wpb_hook_javascript');