You're right, still haven't learned all these details of javascript, and this happened to be something that wasn't caught by any of the jasmine tests. I modified one of the tests to catch this so that it failed, then I fixed this bug so that the test passes.