Fixes + enhancements

Replaced $input with $element in onWindowClick event handler, to support
datepickers without an input field

Datepicker options naming uniformity, used camelCase