Fix for Issue #5 + No button fix

Fixed Eonasdan/bootstrap-datetimepicker#5 and fixed a problem where the datepicker wasn't closing if there was no button.