function include(scriptUrl) {
document.write('<script src="' + scriptUrl + '"></script>');
}
<script src="js/jquery-migrate-1.2.1.min.js"></script>
<script src="../js/jquery-migrate-1.2.1.min.js"></script>
GET http://localhost/salon/portfolio/js/superfish.js include @ tm-scripts.js:75(anonymous function) @ tm-scripts.js:78(anonymous function) @ tm-scripts.js:81
tm-scripts.js:2 GET http://localhost/salon/portfolio/js/jquery.ui.totop.js include @ tm-scripts.js:2(anonymous function) @ tm-scripts.js:39(anonymous function) @ tm-scripts.js:45