Add #11 JavaScript solution