A dependency inversion utility for JavaScript