Add #36 JavaScript solution