Remove dependency on prototype's gsub

My understanding is that prototype's gsub exists to support very old IE browsers. See,
http://www.ruby-forum.com/topic/67954.