Should be at the top of the function block (above `e.preventDefault();`)