apply_invocation_pattern.js