also handles the script src in the javascript