I need a solution for managing js files in my project.
Is there any way that i can reference a js file like this in my html?
<script>
var someName = use("somejsfile.js")
</script>
And to use it like this
<input onclick="someName.saveThisInput()">
Currently the js file in my project is made like this:
$( document ).ready(function() {});
var abc = "some global var";
// a lot of other globals
function saveThisInput(){}
function saveThisInput1(){}
function saveThisInput2(){}
EDIT
I can't make any changes to the preexisting js files so require.js won't work. My goal is to merge two or more such js files having name conflicts