My code to solve the problems on javascript roadtrip at codeschool