Add #35 JavaScript solution