Added backwards compatibilty
Fixed undefined "data" var
Merge pull request #26 from Notificare/dev

Added backwards compatibilty