Check if date rolled over when syncing
Don't use 'date' as req param name (node silently balks)
Refactored to create a single function for ajax GET requests