As @blaces says: A complete example will help beginners to misunderstand what you mean, including the simple example of a view and a JS file.
Or even easier. You can create a github repo with a simple application using an example.