It's annoying that Javascript does not have this capability