Update custom.js

Explain different semantics required for instances versus functions or classes. Based on comments of @minrk in #5985. Makes it clear not everything needs to be stuck in an event monitor or external script. 
Yes, I can see how previously defined keys would be discarded. Good catch.