Updated ts with new option

Added maxReconnectInterval to .ts file.

Bit new to git/github, so hope I've done the new branch/pull request correctly...
Simplify: Max.min(timeout, self.maxReconnectInterval)