fixed $.trim where ie8 has no trime method for js