JavaScript opening_hours parser.