Fixes JS URL paths.