JavaScript: fnTrim