refactor vtpie.js and delete folder ext/resources