change to Apache license for maximum compatibility with Cordova project