How to use jQuery UI's datepicker in Apps Script's HTML Service?
===

I've managed to display the calendar in the UI, but I can't make it react to any events. I've tried 

    $(function() {
    		$('#datepicker').datepicker({
               onSelect: function(dateText, inst) {alert(dateText); }
           });
    	});

but it doesn't work... Please help