solved problem 45 javascript
prob 39 solution. was taht the one?