backport r47392 from ruby/ruby trunk.
removed trailing whitespaces
backport r47395 from ruby/ruby trunk.
Vendor jQuery to latest 1.6.x series [ci skip]

From ruby/ruby#711