Fixed some minor bugs

Some issues with the JS reference as well as images on absolute paths
longer than localhost (1 level)
Merge pull request #1 from EliRobinson/sandbox

Fixed some minor bugs