Resolved compatibility issues with CocoonJS
Merge pull request #581 from mihhail-lapushkin/master

Resolved compatibility issues with CocoonJS