Add dependencies to JS files