Fixed datepicker calendar showing and added conditional element to execution of Google Map