Did you read my next post about the override?
The override needs to run before the beforerender.
Link it as a static file resource, click + at the top of the inspector -> Resource -> JS Resource. This is where the override belongs.
See my new attachment.
Where am I wrong?