Bugfix. Made formToObject JS compatible with IE8- .