Losing the 'this' Binding in Inner Functions and How to Fix It