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.
Merge pull request #1 from pkmiec/master

Remove dependency on prototype