Implemented Cordova 1.9 compatibility.

Reviewer: @aoglvie