Add Sections on modules to JavaScript guide

Inspired by parts of the whitehall guide.