Fix an issue with and improve performance of getElementsByClassName

There was a place in medium in which the `getElementsByClassName` was used in place of `utils.getElementsByCassName`. This will fail on UAs without this function (IE <= 8). I updated this to use the utils convenience function.

I also updated this function so that it tries to use the native (faster) `getElementsByClassName` first (if it exists), before falling back to the polyfill.