Write _inject_js() middleware method + corresponding unit tests. All unit tests are passing now.