Separate dateFormat from core
Create document.head when needed
Use Google Closure Compiler to produce a minified version