Update JavaScript datetime loading to use null instead of an empty string; fix JSLint violations