better date
better error handling && move jquery to the bottom of body