Updated JavaScript tutorial 2: magic-mirror

Change-Id: I2ab15de108b9c3e6ff08701f6e5b017b9850e461