Add #21 JavaScript solution