Fixing image paths with JS :(