Add #27 JavaScript solution