add a more informative idiomatic way to require specific args in js