I have the following file locations :
file:///Users/MyName/Developer/sitename/scripts (contains all .js files..) file:///Users/MyName/Developer/sitename/css
The easiest solution I found on serving local static files is to use Http-Server.
Its usage is dead simple. After installing it globally
npm install http-server -g
Go to the root directory you want to serve
cd http-server
That's it!