Added a recursive solution to problem 002 in Javascript.