Added js patterns module and chain examples.
Merge remote-tracking branch 'origin/master'