Write unit tests for _inject_js.