Updated fix url task to handle main src to JS case.