Fixes 'self is undefined' for missing app.receipts
Merge pull request #21 from kumar303/self-fix

Fixes 'self is undefined' for missing app.receipts