Adding app context as 'this' for onload callbacks.