fixed date and time storage bug and started historical and predicted AJAX request