Turned some console.log statements into asserts, changed scaling of some of the images, changed some array initialization, all part of response to code review comments, see #3.