Tech Debt: Refactor mockjax helper