Update to js to catch errors when not inputs found