Add JavaScript solution problem 11