Add section on JavaScript chaining

Adapted from the version in the whitehall styleguide.
Merge pull request #25 from alphagov/chaining-function

Add section on JavaScript chaining