Fix issue with javascript base paths.