Added 'compatibility mode' for interactions with other libs (e.g. AngularJS)