fixed date checking, turned off onready javascript