Move the ```var self = this;``` line to just above here.