Add #32 JavaScript solution