I think if you just did `var self = this;` at the top of each of those prototype functions it would probably work.