Modify pc.getStats call to work with firefox and chrome