make it work with 2.9.1

change ctx.getContext() to cordova.getActivity()
Merge pull request #5 from neofreko/patch-1

make it work with 2.9.1