Safari only has .children defined on HTML elements

Safari only has .children defined on HTML elements. To detect element content I'm using firstElementChild instead. This fixes an error in Safari 7.