Fixed some minor bugs

Some issues with the JS reference as well as images on absolute paths
longer than localhost (1 level)