You are looking at documentation for an older release. Not what you want? See the current release documentation.
Follow GMD module patterns as much as possible.
Avoid to write inline scripts if possible. Avoid to include libraries externally (in script tag) if possible.
When using JQuery, use the built-in shared module "jquery" if possible. Use GMD adapter configuration if you need other JQuery versions and extensions.
It is strongly recommended you follow these tutorials: