Finish javascript001, init 002
Solve problem 2 with js