fix(rebase): rebased master and migration

Missing 'new' prefix when invoking a constructor.<br>'console' is not defined.