fix date bug in contest + js fix