I am able to fetch units in the js, also changed the scafolding as it returned wrong json