problem 2 JS