Added a few of the advanced JS examples

Change-Id: Ie1abe415396ee3a5f4eb2bbdc93251372222e0cc