Update custom.js

Explain different semantics required for instances versus functions or classes. Based on comments of @minrk in #5985.
Update custom.js
Merge pull request #6258 from patricktokeeffe/patch-1

Update custom.js