Dynamically load JS inside JS
<p>I have a dynamic web page where  I need to import an external JS file (under an <code>IF</code> condition) inside another javascript file.</p>

<p>I tried to search for a feasible solution but it didn't work.</p>

<p>I have tried loading a JS file to the DOM using <code>document.createElement()</code> but it also didn't work. Apparently the Js was loaded into the DOM but was not accessible in the current JS file.</p>

<p>Solution in jQuery will also be fine</p>
