Fix for relative path, and sorting of JS files.