Replaced JavaScript trim() which is not supported on IE8 with JQuery $.trim()
Replaced $.trim with jQuery.trim
Merge pull request #359 from alietz/master

Fixed IE8 error when updating a record