Updated JavaScript tutorial 1

Change-Id: Ieabd97aae8e943656258a1ccbdeca55a351860dc