fix the time zone problem and some js stuff