Javascript: Solved Pete, the Baker