Fix JavaScript String.trim() function is unavailable in IE<9. #45