Replaced @constructor.name with more cross-browser (with cordjs) @constructor.__name