Since your script is presumably loaded from index.html, the path should be relative to that, I think. Either way, make sure it works on your computer first. That way, if it no longer works after upload, you'll know where the problem is.
Thank you for the reply. That did the trick!