Added circular dependency fix to dependency.js