Get and replace dependencies of JS and CSS files