New events working in phantomjs which does not accept the constructor