Finish problem 8
Start on javascript solutions