Fixed an issue with attaching datetimepicker to an input.

Fixed an issue where if datetimepicker is attached to an input and you click it to show the datetimepicker. 
Fixed when you click anywhere else on the screen it wouldn't hide the datetimepicker.
Fixed an issue where addClass and removeClass were attempting to be run on icon when icon does not exist because you are attaching directly to the input field.