Fixed IE8 error when updating a record

IE8 displays an RJS error when a user updates a record. That's because IE8 doesn't support the JavaScript trim() function, so I propose to use the jQuery $.trim function instead.