Updated JavaScript tutorial 2: magic-mirror

Change-Id: I5f9e50ddca8d6e4b8f24926778099ccba43feeee