Cross platform cordova hooks script