added lab2: javascript