customevent polyfill for phantomjs - trying to fix broken e2e user profile update test on travis