Fixed 11830377 

- Formatted code.
- Separated the declarations for `$container`, `currentDate`, and `mode`.
- Fixed 11830377 https://github.com/karlseguin/jquery.datePicker/issues/5#issuecomment-11830377