Fixes #8

Updated the home page to reference the correct relative paths
Update the javascript to handle relative path errors
Closes #8