ruby and javascript different date formats fixed
lots of stuff