changed constructor to reference in js.json