Add #20 JavaScript solution