fix jslint errors.
JavaScript: make init_datepicker function public.

This is useful in combination with AJAX.