Cleaned up the Javascript code. Added functionality to turn on/off date pickers based on All Day selection.