Mobile flashlight, learning excercise in html5/js mob