[minor] change time format regex to support more formats, some js reformatting