separated cordova calendar functions into its own file