Fixes file paths for images and js