Add #17 JavaScript solution