Fixes #968: clientOptions should not be ignored when enabling internationalization.
optimized datepick js code.