function loadDev(){ var jq = document.createElement("script"); jq.setAttribute("src","http://code.jquery.com/jquery-2.1.0.js") document.head.appendChild(jq); var us = document.createElement("script"); us.setAttribute("src","http://underscorejs.org/underscore.js") document.head.appendChild(us); console.log("Loaded Jquery and Underscore") } loadDev()