I don't really know Macs, but the easiest way to see the absolute path would be to open the HTML file on your computer in a browser and look in the URL bar to see what path you should use.
For example, on Windows I might get something like this in the URL bar of my browser:
file:///C:/Games/MyGame/GameName.html
so the absolute path would be "C:/Games/MyGame/", assuming you're putting the JavaScript files in the same directory as the HTML. The relative path, in that case, would be "" (an empty string), since it's the same directory as the HTML.
If you have the JavaScript files in, for example, a directory named "scripts", then you could do either this:
if (window.hasOwnProperty("storyFormat")) {
// Change this to the path where the JavaScript file is
// located if you want to run this from inside Twine.
setup.Path = "C:/Games/MyGame/scripts/"; // Running inside Twine application
} else {
setup.Path = "scripts/"; // Running in a browser
}
or this:
setup.JSLoaded = false;
importStyles(setup.Path + "scripts/jquery-ui.css");
importScripts(setup.Path + "scripts/jquery-ui.js")
.then(function() {
setup.JSLoaded = true;
}).catch(function(error) {
alert(error);
}
);
but not both.
Also, make sure you always use the same upper- and lower-case names as the directories and filenames, since some OSes and browsers are case sensitive.
Have fun!