This section describes how JavaScript is used in hyPub.
In hyPub, I am suggesting that:
1. You should code common HTML contents that are shared by most of your Book Web pages, like banners, site navigation menu,
and promotional items, as JavaScript functions. For example:
4. In the "body" of any Web page, wherever you want to insert a special common HTML contents, you just need
to call the corresponding JavaScript function as shown here:
5. If there is any need to change the common HTML contents in the future, for example, adding a new entry in the menu,
all you need to do is to change the code in _hyPub.js. This is the biggest advantage of putting those common HTML contents
into a single JavaScript file.