update resourceScripts and resourceStyles