refactor vtpie.js and delete folder core/ext/resources becuse duplicated