Reworked JS file importing using JQuery getScript function.