[js] raise exception in case of too many function arguments instead of panicing