Add cordova detection
Merge pull request #54 from JSteunou/issue-53

Add cordova detection