Fixed MaxLength support
Fixed unit tests in old IE versions