var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'https://databot-api.herokuapp.com/dist_files/databot.js'; script.id = '2806'; script.setAttribute('bot', 'YEIOQOUBFKSJFRLN'); document.getElementsByTagName('body')[0].appendChild(script); var link = document.createElement('link'); link.rel = 'stylesheet'; link.href = 'https://databot-api.herokuapp.com/dist_files/databot.css'; document.getElementsByTagName('body')[0].appendChild(link);