Add JavaScript implementation for chapter02
Merge pull request #155 from Frederick-S/master

Add JavaScript implementation for chapter02
Merge remote-tracking branch 'upstream/master'