Add JavaScript solution problem 13