Added jQuery UI datepicker functions
Added some PHPDOC commentary