Add getElementsByClassName function.

getElementsByClassName can be useful in some situations. Although not supported in IE8-, it's IE's fault.