fixed invite friend spec to work with webkit