Make update flash refs also handle JS files.