moved calendar code to external file.  fixed calendar json date strings for Chrome/iOS