Remove last remaining calls to toElement for IE compatibility. Closes #64.