Added JavaScript tutorial 2

Change-Id: Id48d932e241d3d59dd7546b076ba5873691f59b9