dependencies.js rewrite